package com.chenyaowei.product.request;

import com.chenyaowei.product.domain.CywProductAttrValue;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author 陈耀威
 * @description:
 * @date 2023年12月02日
 * @version: 1.0
 */
public class ProductSearchRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "分类不能唯空")
    private Long catId;

    private Long brandId;

    private List<CywProductAttrValue> attrs;

    private Integer pageNum;

    private Integer pageSize;

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Long getCatId() {
        return catId;
    }

    public void setCatId(Long catId) {
        this.catId = catId;
    }

    public Long getBrandId() {
        return brandId;
    }

    public void setBrandId(Long brandId) {
        this.brandId = brandId;
    }

    public List<CywProductAttrValue> getAttrs() {
        return attrs;
    }

    public void setAttrs(List<CywProductAttrValue> attrs) {
        this.attrs = attrs;
    }
}
